<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Permiso extends AppModel {
    public $useTable = 'permisos';
    public function regresaBase()
    {
        return $this->getDataSource();
    }
    public function ultimoId()
    {
        $id = $this->find('first',array(
            'fields' => 'id',
            'order' => 'id DESC',
            'callbacks' => false,
          ));
        $id = $id['Permiso']['id'];
        return $id;
    }
}
?>
